﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.Pagination;
using WMS.StorageManagement.RepositoryDefinitions.Dto;

namespace WMS.StorageManagement.RepositoryDefinitions
{
    /// <summary>
    /// 仓库定义服务接口
    /// </summary>
    public interface IRepositoryDefinitionAppService: IApplicationService
    {
        /// <summary>
        /// 添加仓库定义信息
        /// </summary>
        /// <param name="repositoryDefinitionDto">仓库定义Dto</param>
        /// <returns>返回结果</returns>
        Task<int> Insert(RepositoryDefinitionDto repositoryDefinitionDto);
        /// <summary>
        /// 显示仓库定义信息
        /// </summary>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="repositoryName">仓库名称</param>
        /// <returns>返回结果</returns>
        Task<PageResult> GetInquire(int pageIndex, int pageSize, string? repositoryName);
        /// <summary>
        /// 删除仓库定义信息
        /// </summary>
        /// <param name="ids">仓库定义编号</param>
        /// <returns>返回结果</returns>
        Task<int> Deleted(string ids);
        /// <summary>
        /// 编辑客户信息
        /// </summary>
        /// <param name="repositoryDefinitionDto">仓库定义Dto</param>
        /// <returns>返回结果</returns>
        Task<int> Update(RepositoryDefinitionDto repositoryDefinitionDto);
    }
}

